package org.song.model.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.ibatis.type.Alias;

import java.util.Date;

@ApiModel("友链实体")
@AllArgsConstructor
@NoArgsConstructor
@Data
@Builder
@Alias( value = "Link")
public class Link {


    @ApiModelProperty( value = "主键" , notes = "主键")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    @ApiModelProperty(value = "友链名称" , notes = "友链名称")
    private String linkName;

    @ApiModelProperty(value = "友链头像地址" , notes = "友链头像地址")
    private String avatarLink;

    @ApiModelProperty(value = "友链地址" , notes = "友链地址")
    private String blogLink;

    @ApiModelProperty(value = "描述" , notes = "描述")
    private String description;

    @ApiModelProperty(value = "创建时间" , notes = "创建时间")
    @JsonFormat( pattern = "yyyy-MM-dd HH:ss")
    private Date createTime;

    @ApiModelProperty(value = "友链展示状态" , notes = "友链展示状态")
    private Byte dataStatus;

    @ApiModelProperty(value = "删除状态" , notes = "删除状态")
    private Byte deleted;

}
